root: Make gtk_root_get_display public
authorMatthias Clasen <mclasen@redhat.com>
Sun, 19 May 2019 20:35:59 +0000 (20:35 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:02 +0000 (20:25 +0000)
This is following the precedent of making
GtkNative getters public.

gtk/gtkroot.c
gtk/gtkroot.h
gtk/gtkrootprivate.h

index 95e8f69f26ca5980dea95be1444bcfae35cdf8be..919aa65f942e6ae2ee0ebe34fadc1b0209683cde 100644 (file)
@@ -63,6 +63,14 @@ gtk_root_default_init (GtkRootInterface *iface)
                            GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
 }
 
+/**
+ * gtk_root_get_display:
+ * @self: a #GtkRoot
+ *
+ * Returns the display that this GtkRoot is on.
+ *
+ * Returns: (transfer none): the display of @root
+ */
 GdkDisplay *
 gtk_root_get_display (GtkRoot *self)
 {
index 3136a00911d516c053df5cd66f5c177ebda215a6..648defa380948f8007b5d80f8236ddb1fcc1d862 100644 (file)
@@ -48,6 +48,9 @@ struct _GtkRootInterface
   GdkDisplay * (* get_display)  (GtkRoot *self);
 };
 
+GDK_AVAILABLE_IN_ALL
+GdkDisplay * gtk_root_get_display (GtkRoot *root);
+
 GDK_AVAILABLE_IN_ALL
 void        gtk_root_set_focus (GtkRoot   *self,
                                 GtkWidget *focus);
index ddf4fb01ef407f03346fad31f1ae01cb1dc90daa..3afbae712c4944feefec296600fcee03208bf981 100644 (file)
@@ -5,8 +5,6 @@
 
 G_BEGIN_DECLS
 
-GdkDisplay * gtk_root_get_display (GtkRoot *root);
-
 enum {
   GTK_ROOT_PROP_FOCUS_WIDGET,
   GTK_ROOT_NUM_PROPERTIES